package org.studio.crusoe.framework.pattern.forward;

import java.util.ArrayList;
import java.util.List;

import org.junit.Test;
import org.studio.crusoe.framework.pub.exception.ForwardException;

public class ForwardPatternTester {
    @Test
    public void testForward() throws ForwardException{
        ForwardDispatch dispatch = new ForwardDispatch();
        Forward_1 forward_1 = new Forward_1();
        Forward_2 forward_2 = new Forward_2();
        List<IForward> list = new ArrayList<IForward>();
        list.add(forward_1);
        list.add(forward_2);
        dispatch.initDispatch("testId", list);
        dispatch.dispatch("testId", null);
    }
}
